package com.cuixichang.minimalism.basal.core;

public abstract class ExceptionCodeAbs extends RuntimeException{
    /**
     * 错误消息信息
     */
    private String errorMessage;
    /**
     * 异常信息传递
     */
    private Throwable cause ;

    public ExceptionCodeAbs(String errorMessage , Throwable cause) {
        super(errorMessage , cause);
        this.errorMessage = errorMessage;
        this.cause = cause ;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    @Override
    public Throwable getCause() {
        return cause;
    }

    public void setCause(Throwable cause) {
        this.cause = cause;
    }
}
